#pragma once

class CEX IO
{

	static Dict<String,FileSource*> _mounts;
	static Mutex _mtx;

	IO(){}

public:

	static void init();
	static void shutdown();

	static void mount(const String& mountPoint,FileSource* fs);
	static void unmount(const String& mountPoint);

	static File* openFile(const String& path,bool write = false,bool create = false);

	static void copyFile(const String& src,const String& dest);
};
